<template>
<!--公司账务统计 and  支付收款方式-->
  <div>
    <div class="company-account-box">
        <div style="display: flex;padding-left: 15px;padding-top: 11px;height: 30px" >
          <a  href="#">
            <div style="display: flex"  >
              <i class="icon-duojizhangbuyuechaxun" style="margin-top: 6px;margin-right: 5px;margin-left: 5px"></i>
              <h3>公司账务余额(支付收款方式)</h3>
            </div>
          </a>
        </div>
      <div class="company-account-box-detail">
        <el-card v-for="(item,index) in dataList" :key="index" class="box-card">
          <div slot="header" class="clearfix">
            <span style="font-weight: bold">{{item.pay_take_name}}</span>
            <el-button style="float: right; padding: 3px 0" type="text">查看明细</el-button>
            <span style="float: right;margin-right: 90px;font-weight: lighter">余额:&nbsp;<span style="font-style: oblique;color: #ff3526">{{item.money}}<span style="color: #2c3e50">元</span></span></span>
          </div>
          <div>
            <img v-if="true" :src="''" style="width: 450px;height: 180px" class="image">
<!--              <div style="background-color: #f2f2f2;width: 450px;height: 180px">-->
<!--                  <h1   style="font-size: 80px;text-align: center;padding-top: 30px">现金支付</h1>-->
<!--              </div>-->
          </div>
        </el-card>

      </div>

    </div>
  </div>
</template>

<script>
import {get} from "../../utils/request";

export default {
  name: "CompanyAccount",
  data(){
    return{
      dataList:[]
    }
  },
  mounted() {
    get('/api/v1/companymoney/all').then(resp=>{
      this.dataList=resp.data
      console.log(this.dataList)
    })
  },
  methods:{
    checkImg(){
      return require("../../assets/wechat.png")
    }
  }
}
</script>

<style scoped>
h1{
  margin: 0;
}

.company-account-box-detail{
  width: 100%;
  border-top: 1px solid #c2c0c0;
  border-bottom: 1px solid #c2c0c0;
  height: 600px;
  overflow: hidden;
  overflow-y: scroll;
  display: flex;
  flex-wrap: wrap;
  /*background-color: #f2f2f2;*/
  /*background-color: #409EFF;*/
}
a{
  text-decoration: none;
  color: #2c3e50;
}
h3{
  margin: 0;
}
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}
.box-card {
  width: 480px;
  height: 280px;
  margin-left: 90px;
  margin-top: 10px;
  margin-right:  10px;
  margin-bottom: 5px;
  /*margin-bottom: 20px;*/
}
.company-account-box{
  height: 674px;

  margin-top: 10px;
  width: 1290px;
  background-color: white;
  border-radius: 30px;
  box-shadow:  20px 20px 60px #bebebe,
  -20px -20px 60px #ffffff;
}

</style>
